@(page: models.cms.PageDto)(block: models.cms.BlockDto)
@contents = @{(block.getData().get("contents")).asInstanceOf[List[models.BeanDtoInfo]]}
<ul>
@if(contents != null){
	@for(bean <- contents){
		@bean match {
			case product: models.core.catalog.VinDtoInfo => {
				<li><a href="@routes.Application.showByContent(block.getTargetPage(), product.getContent().getKey())">@product.getId() -@product.getShortName()</a></li>
			}
			case vigneron: models.core.catalog.VigneronDtoInfo => {
				<li><a href="@routes.Application.showByContent(block.getTargetPage(), vigneron.getContent().getKey())">@vigneron.getId() -@vigneron.getLastName()</a></li>
			}			
		}
	}	
}
</ul>
